#ifndef GoCurveActionGroup_H_INCLUDED
#define GoCurveActionGroup_H_INCLUDED

#include <Aria.h>
#include "CurveAction.h"
#include "GoStraightAction.h"

#include <stdio.h>
#include <iostream>
class GoCurveActionGroup: public ArActionGroup {

private:

	CurveAction* curve;
	GoStraightAction* advance;
	int speed;
	double turningTime;
	bool mustCurve;
	bool emergencyStop;

public:
	GoCurveActionGroup(ArRobot* robot,int speed, uint16_t distanceToCurve, double turningTime, int rotVel, int rotDecel );
	~GoCurveActionGroup();
	bool haveAchievedDistance();
	void setDistance(double totalDistance, int direction);
	void stop();
	bool isStartedCurve();
};

#endif
